let str = "zxzzhy:政协组织的其他会议,zmwyhhy:专门委员会会议,jbhyly:界别会议,dzbhy:党支部会议,zthy:专题会议,xshy:协商会议,zth:座谈会,jyjlh:经验交流会,xwfbh:新闻发布会;dhfy:大会发言,smfy:书面发言,tjgj:提交稿件;space:space,lm:联名;province:省级领导批示,country:国家领导批示,city:市级领导批示";
let strings = str.split(";");
let objArr = strings.map(stritem1 => {
    let stringArr = stritem1.split(",");
    let map = stringArr.map(stritem2 => stritem2.split(":"));
    return Object.fromEntries(map);
});
console.log(objArr)

let res = objArr.reduce((result, obj, index) => {
    if (index === 0) {
        return obj;
    } else {
        return merge(result, obj);
    }
}, {})
console.log(res)

function merge(obj1, obj2) {
    let result = {}
    let keys1Arr = Object.keys(obj1);
    let keys2Arr = Object.keys(obj2);
    keys1Arr.forEach(key1 => {
        keys2Arr.forEach(key2 => {
            result[key1 + "-" + key2] = obj1[key1] + "-" + obj2[key2];
        })
    })
    return result;
}


